/*
 * @Author: giteezr 2250368646@qq.com
 * @Date: 2023-12-07 10:06:44
 * @LastEditors: giteezr 2250368646@qq.com
 * @LastEditTime: 2023-12-08 10:48:10
 * @FilePath: \新建文件夹\management-system\src\api\login.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { post } from './http';
import { ts_signUp, ts_login } from '../interface/user.type'
// 注册
export function signup(params: ts_signUp) {
  return post('/users/signup', params);
}

// 登录
export function login(params: ts_login) {
  return post('/users/login', params)
}

